﻿using CID.Domain.Infrastructure;
using CID.Web.Models.Infrastructure;
using CID.Web.Support;
using CID.Domain.Users;

namespace CID.Web.Controllers
{
    [CIDAuthorize(UserRole.Architect, UserRole.Manager)]
    public class DeploymentAgentController : BaseCRUDController<IDeploymentAgent, DeploymentAgent, DeploymentAgentViewModel>
    {
        protected override DeploymentAgent CreateModel(DeploymentAgentViewModel viewModel)
        {
            return new DeploymentAgent(viewModel.Name, viewModel.Address);
        }
    }
}
